package com.clkj.testaar;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.clkj.tramcarlibrary.aroundtaxi.ActivityTaxiAroundView;

public class MainActivity extends AppCompatActivity {

    private Button btTaxi;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();

        btTaxi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent toTaxi = new Intent(MainActivity.this, ActivityTaxiAroundView.class);
                startActivity(toTaxi);
            }
        });

    }

    private void initView() {
        btTaxi = (Button) findViewById(R.id.bt_taxi);
    }

}
